package com.example.tanhuanapp.sexEnum;

import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author IT空门_门主
 * @date 2024/1/7
 * 描述: 枚举 用性别
 */

public enum SexEnum implements IEnum<Integer> {
    MAN(1,"男"),
    WOMAN(2,"女"),
    SECRET(3,"未知");

    private Integer value;
    private String desc;

    SexEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String toString() {
        return this.desc;
    }
}
